package com.imooc.repository;

import com.imooc.dataobject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface OrderMasterRepository extends JpaRepository<OrderMaster, String> {
    //根据用户微信id查询个人消费的订单
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenId, Pageable pageable);
    //void deleteByOrderId(String orderId);
}
